<!DOCTYPE html>
<html>
<head>
    <title>后台管理系统</title>

    <link rel="stylesheet" type="text/css" href="/lib/bootstrap/dist/css/bootstrap.min.css">

    <link rel="stylesheet" type="text/css" href="/css/site.css">

    <script type="text/javascript" src="/lib/jquery.min.js"></script>
</head>
<body>
    <div class="container">
        <!-- 标题 -->
        <div class="row">
            <div class="col-md-12">
              <nav class="navbar navbar-default" role="navigation">
                  <div class="container-fluid">
                    <div class="navbar-header">
                      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-5">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                      </button>
                      <a class="navbar-brand" href="#">欢迎登录视频网站管理系统</a>
                    </div>
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-5">
                      <p class="navbar-text navbar-right">欢迎【{{uname}}】 <a href="#" id="logout" class="navbar-link">退出</a></p>
                    </div>
                  </div>
              </nav>
            </div>
        </div>

        <!-- 下面的,包含菜单和内容 -->
        <div class="row">
            <!-- 菜单 -->
            <div class="col-md-3">
                <div class="list-group">
                  <a href="#" class="list-group-item active">
                     系统管理
                  </a>
                  <a href="#" class="list-group-item">视频管理</a>
                  <a href="#" class="list-group-item">用户管理</a>
                  <a href="#" class="list-group-item">修改密码</a>
                  <a href="#" class="list-group-item">退出登录</a>
                </div>
            </div>

            <!-- 下面是列表的内容 -->
            <div class="col-md-9">
                {{{block ("body")}}}
            </div>
        </div>
    </div>
</body>
  <script type="text/javascript">
     $("#logout").click(function(){
        if (confirm("确定退出吗?")) {
            window.location.href = '/account/logout';
        }
     });

  </script>
</html>